<?php
$feed_url='';
	if (isset($_GET['run'])) {
		$number = $_GET['run'];
	}
    
    echo $number;
    if ($number == 1) {
    	$feed_url = "http://www.health.com/health/diet-fitness/feed";
    }
    else if ($number == 2) {
    
    	$feed_url = "http://www.health.com/health/food-recipes/feed";
    }
    else if ($number == 3) {
    	$feed_url = "http://www.health.com/health/cholesterol/feed/";
    }
    else if ($number == 4) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=appetizers";
    }
    else if ($number == 5) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=asian";
    }
    else if ($number == 6) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=eggs";
    }
    else if ($number == 7) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=potatoes";
    }
    else if ($number == 8) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=barbecue";
    }
    else if ($number == 9) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=chocolate";
    }
    else if ($number == 10) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=28&slug=christmas";
    }
    else if ($number == 11) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=cocktails";
    }
    else if ($number == 12) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=no-cook";
    }
    else if ($number == 13) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=28&slug=thanksgiving";
    }
    else if ($number == 14) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=28&slug=copycat";
    }
    else if ($number == 15) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=one-dish-meal";
    }
    else if ($number == 16) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=lactose";
    }
    else if ($number == 17) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=pasta";
    }
    else if ($number == 18) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=turkey";
    }
    else if ($number == 19) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=28&slug=desserts";
    }
    else if ($number == 20) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=pizza";
    }
    else if ($number == 21) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=valentines-day";
    }
    else if ($number == 22) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=dinner-party";
    }
    else if ($number == 23) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=pork-chops";
    }
    else if ($number == 24) {
    	$feed_url = "http://www.food.com/rssapi.do?page_type=26&slug=vegetarian";
    }
   
    session_start();
    
    $_SESSION['FEED_URL'] = $feed_url;
    echo $_SESSION['FEED_URL'];
    session_write_close();
    
    header("location: rssfeed.php");
    exit();
    
?>